var target={  //对象 网页 url
    name:'poetries'
}

var handler = {
    get:function(target,key){
        console.log('----');
        return target[key];
    },
    set:function(target,key,value){
        console.log('/////');
        target[key]=value;
    }
}

// 浏览器

var targetWithLog=new Proxy(target,handler);
console.log(targetWithLog.name);
targetWithLog.name='卫龙';